﻿using System.Collections.Generic;
using System.Linq;
using DAL;
using System.Web.Mvc;
using BLL;
namespace App.Models
{
    public class SysFieldsDDL
    {    
        /// <summary>
        /// 获取字段，首选默认
        /// </summary>
        /// <returns></returns>
        public static IEnumerable<SelectListItem> GetSysFields(string table, string colum)
        {
            using (BaseDDL baseDDL = new BaseDDL())
            {
                //做一个匿名集合
                //new SelectListItem { Text = m.MyTexts, Value = m.MyTexts };

                return baseDDL.GetSysFields(table, colum);
            }
        }
    }
}